package com.ruoyi.hr.service.impl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.domain.Education;
import com.ruoyi.hr.domain.Qualification;
import com.ruoyi.hr.mapper.EducationMapper;
import com.ruoyi.hr.mapper.QualificationMapper;
import com.ruoyi.hr.service.EducationService;
import com.ruoyi.hr.service.QualificationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QualificationServiceImpl implements QualificationService {
    @Autowired
    private QualificationMapper qualificationMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Qualification> findQualifications(Long eid) {
        return qualificationMapper.findQualifications(eid);
    }



}
